home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 March / Disc 1 / PCU030201.iso / ads / files / main.swf / scripts / DefineSprite_26 / frame_1 / DoAction.as
Encoding:
Text File  |  2001-10-25  |  466 b   |  12 lines

  1. bytesLoaded = _level0.getBytesLoaded();
  2. KbytesLoaded = int(_level0.getBytesLoaded() / 1024) add "/" add kbytesTotal;
  3. bytesTotal = _level0.getBytesTotal();
  4. KbytesTotal = int(_level0.getBytesTotal() / 1024) add "K";
  5. percentSetup = bytesLoaded / bytesTotal * 100;
  6. percentage = int(percentSetup) add "% of" add KbytesTotal add " Loaded";
  7. setProperty("_root.DropIn.LoaderBar", _xscale, percentSetup);
  8. if(bytesLoaded >= bytesTotal)
  9. {
  10.    _root.gotoAndPlay(3);
  11. }
  12.